Go to the source code of this file.
|
| void | CtlService_Initialize (CtlService *pThis, struct QmuxTransport *pTransport) |
| |
| void | CtlService_ShutDown (CtlService *pThis) |
| |
| int | CtlService_GetClientId (CtlService *pThis, uint8_t serviceType, uint8_t *clientId) |
| |
| int | CtlService_ReleaseClientId (CtlService *pThis, uint8_t serviceType, uint8_t clientId) |
| |
| int | CtlService_InitializeRegularService (CtlService *pThis, QmiService *pRegularService, uint8_t serviceType, QMI_INDICATION_CALLBACK pIndicationCallback, void *pIndicationCallbackContext) |
| |
| int | CtlService_ShutDownRegularService (CtlService *pThis, QmiService *pRegularService) |
| |
This structure abstracts a CTL QMI service. It wraps a QMI service which is initialized to type CTL. Synchronous methods are provided for getting and releasing client IDs on behalf of other (regular) QMI services.
- Parameters
-
| service |
- QMI service object, initialized to be of type CTL.
|
| int CtlService_GetClientId |
( |
CtlService * |
pThis, |
|
|
uint8_t |
serviceType, |
|
|
uint8_t * |
clientId |
|
) |
| |
Get a client ID for a given QMI service type.
- Parameters
-
| [in] | pThis | The primary object of this call. |
| [in] | serviceType | QMI service type. |
| [out] | clientId | Returned client ID. |
- Returns
- 0 on success, < 0 on failure.
Initialize CTL service.
- Parameters
-
| [in] | pThis | The primary object of this call. |
| [in] | pTransport | Pointer to underlying transport layer which is responsible for sending and receiving QMUX packets |
Convenience function to initialize a QMI service object. Under the hood, it gets a client ID for a given QMI service type.
- Parameters
-
| [in] | pThis | The primary object of this call. |
| [in] | pRegularService | Uninitialized QMI service object. |
| [in] | serviceType | QMI service type. |
| [in] | pIndicationCallback | User function to be be called when QMI indications are received by the service. |
| [in] | pIndicationCallbackContext | A user context for callback. |
- Returns
- 0 on success, < 0 on failure.
| int CtlService_ReleaseClientId |
( |
CtlService * |
pThis, |
|
|
uint8_t |
serviceType, |
|
|
uint8_t |
clientId |
|
) |
| |
Release a client ID for a given QMI service type. Client ID will have beeb previously obtained by invoking CtlService_GetClientId.
- Parameters
-
| [in] | pThis | The primary object of this call. |
| [in] | serviceType | QMI service type. |
| [in] | clientId | Client ID to be released. |
- Returns
- 0 on success, < 0 on failure.
Shut down CTL service.
- Parameters
-
| [in] | pThis | The primary object of this call. |
Convenience function to shuit down a QMI service object. Under the hood, it releases a client ID for a given QMI service type.
- Parameters
-
| [in] | pThis | The primary object of this call. |
| [in] | pRegularService | Previously initialized QMI service object. |
- Returns
- 0 on success, < 0 on failure.